package com.turing.domain;

import com.turing.utils.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 供应商#supplier_info
 * @TableName supplier_info
 */
public class SupplierInfo extends BaseEntity implements Serializable {
    /**
     * 供应商主键#primary
     */
    private Integer supplierId;

    /**
     * 名称
     */
    private String supplierName;

    /**
     * 联系人
     */
    private String supplierLinkPerson;

    /**
     * 电话
     */
    private String supplierPhone;

    /**
     * 序号
     */
    private Integer supplierNum;

    /**
     * 银行名称
     */
    private String bankName;

    /**
     * 账号
     */
    private String bankSn;

    /**
     * 地址
     */
    private String supplierAddress;

    /**
     * 状态#state#0=关停, 1=正常, 2=修整
     */
    private Integer supplierState;

    /**
     * 代号
     */
    private String supplierCode;

    /**
     * 是否入住#state#0=未入住, 1=入住
     */
    private Integer supplierIsJoin;

    /**
     * 描述
     */
    private String supplierInfo;

    /**
     * 成立时间
     */
    private Date supplierFoundedDate;

    /**
     * 注册资金
     */
    private Double supplierRegisteredCapital;

    private Integer supplierNumFrom;
    private Integer supplierNumTo;


    private static final long serialVersionUID = 1L;

    /**
     * 供应商主键#primary
     */
    public Integer getSupplierId() {
        return supplierId;
    }

    /**
     * 供应商主键#primary
     */
    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * 名称
     */
    public String getSupplierName() {
        return supplierName;
    }

    /**
     * 名称
     */
    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    /**
     * 联系人
     */
    public String getSupplierLinkPerson() {
        return supplierLinkPerson;
    }

    /**
     * 联系人
     */
    public void setSupplierLinkPerson(String supplierLinkPerson) {
        this.supplierLinkPerson = supplierLinkPerson;
    }

    /**
     * 电话
     */
    public String getSupplierPhone() {
        return supplierPhone;
    }

    /**
     * 电话
     */
    public void setSupplierPhone(String supplierPhone) {
        this.supplierPhone = supplierPhone;
    }

    /**
     * 序号
     */
    public Integer getSupplierNum() {
        return supplierNum;
    }

    /**
     * 序号
     */
    public void setSupplierNum(Integer supplierNum) {
        this.supplierNum = supplierNum;
    }

    /**
     * 银行名称
     */
    public String getBankName() {
        return bankName;
    }

    /**
     * 银行名称
     */
    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    /**
     * 账号
     */
    public String getBankSn() {
        return bankSn;
    }

    /**
     * 账号
     */
    public void setBankSn(String bankSn) {
        this.bankSn = bankSn;
    }

    /**
     * 地址
     */
    public String getSupplierAddress() {
        return supplierAddress;
    }

    /**
     * 地址
     */
    public void setSupplierAddress(String supplierAddress) {
        this.supplierAddress = supplierAddress;
    }

    /**
     * 状态#state#0=关停, 1=正常, 2=修整
     */
    public Integer getSupplierState() {
        return supplierState;
    }

    /**
     * 状态#state#0=关停, 1=正常, 2=修整
     */
    public void setSupplierState(Integer supplierState) {
        this.supplierState = supplierState;
    }

    /**
     * 代号
     */
    public String getSupplierCode() {
        return supplierCode;
    }

    /**
     * 代号
     */
    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    /**
     * 是否入住#state#0=未入住, 1=入住
     */
    public Integer getSupplierIsJoin() {
        return supplierIsJoin;
    }

    /**
     * 是否入住#state#0=未入住, 1=入住
     */
    public void setSupplierIsJoin(Integer supplierIsJoin) {
        this.supplierIsJoin = supplierIsJoin;
    }

    /**
     * 描述
     */
    public String getSupplierInfo() {
        return supplierInfo;
    }

    /**
     * 描述
     */
    public void setSupplierInfo(String supplierInfo) {
        this.supplierInfo = supplierInfo;
    }

    /**
     * 成立时间
     */
    public Date getSupplierFoundedDate() {
        return supplierFoundedDate;
    }

    /**
     * 成立时间
     */
    public void setSupplierFoundedDate(Date supplierFoundedDate) {
        this.supplierFoundedDate = supplierFoundedDate;
    }

    /**
     * 注册资金
     */
    public Double getSupplierRegisteredCapital() {
        return supplierRegisteredCapital;
    }

    /**
     * 注册资金
     */
    public void setSupplierRegisteredCapital(Double supplierRegisteredCapital) {
        this.supplierRegisteredCapital = supplierRegisteredCapital;
    }

    public Integer getSupplierNumFrom() {
        return supplierNumFrom;
    }

    public void setSupplierNumFrom(Integer supplierNumFrom) {
        this.supplierNumFrom = supplierNumFrom;
    }

    public Integer getSupplierNumTo() {
        return supplierNumTo;
    }

    public void setSupplierNumTo(Integer supplierNumTo) {
        this.supplierNumTo = supplierNumTo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SupplierInfo other = (SupplierInfo) that;
        return (this.getSupplierId() == null ? other.getSupplierId() == null : this.getSupplierId().equals(other.getSupplierId()))
            && (this.getSupplierName() == null ? other.getSupplierName() == null : this.getSupplierName().equals(other.getSupplierName()))
            && (this.getSupplierLinkPerson() == null ? other.getSupplierLinkPerson() == null : this.getSupplierLinkPerson().equals(other.getSupplierLinkPerson()))
            && (this.getSupplierPhone() == null ? other.getSupplierPhone() == null : this.getSupplierPhone().equals(other.getSupplierPhone()))
            && (this.getSupplierNum() == null ? other.getSupplierNum() == null : this.getSupplierNum().equals(other.getSupplierNum()))
            && (this.getBankName() == null ? other.getBankName() == null : this.getBankName().equals(other.getBankName()))
            && (this.getBankSn() == null ? other.getBankSn() == null : this.getBankSn().equals(other.getBankSn()))
            && (this.getSupplierAddress() == null ? other.getSupplierAddress() == null : this.getSupplierAddress().equals(other.getSupplierAddress()))
            && (this.getSupplierState() == null ? other.getSupplierState() == null : this.getSupplierState().equals(other.getSupplierState()))
            && (this.getSupplierCode() == null ? other.getSupplierCode() == null : this.getSupplierCode().equals(other.getSupplierCode()))
            && (this.getSupplierIsJoin() == null ? other.getSupplierIsJoin() == null : this.getSupplierIsJoin().equals(other.getSupplierIsJoin()))
            && (this.getSupplierInfo() == null ? other.getSupplierInfo() == null : this.getSupplierInfo().equals(other.getSupplierInfo()))
            && (this.getSupplierFoundedDate() == null ? other.getSupplierFoundedDate() == null : this.getSupplierFoundedDate().equals(other.getSupplierFoundedDate()))
            && (this.getSupplierRegisteredCapital() == null ? other.getSupplierRegisteredCapital() == null : this.getSupplierRegisteredCapital().equals(other.getSupplierRegisteredCapital()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSupplierId() == null) ? 0 : getSupplierId().hashCode());
        result = prime * result + ((getSupplierName() == null) ? 0 : getSupplierName().hashCode());
        result = prime * result + ((getSupplierLinkPerson() == null) ? 0 : getSupplierLinkPerson().hashCode());
        result = prime * result + ((getSupplierPhone() == null) ? 0 : getSupplierPhone().hashCode());
        result = prime * result + ((getSupplierNum() == null) ? 0 : getSupplierNum().hashCode());
        result = prime * result + ((getBankName() == null) ? 0 : getBankName().hashCode());
        result = prime * result + ((getBankSn() == null) ? 0 : getBankSn().hashCode());
        result = prime * result + ((getSupplierAddress() == null) ? 0 : getSupplierAddress().hashCode());
        result = prime * result + ((getSupplierState() == null) ? 0 : getSupplierState().hashCode());
        result = prime * result + ((getSupplierCode() == null) ? 0 : getSupplierCode().hashCode());
        result = prime * result + ((getSupplierIsJoin() == null) ? 0 : getSupplierIsJoin().hashCode());
        result = prime * result + ((getSupplierInfo() == null) ? 0 : getSupplierInfo().hashCode());
        result = prime * result + ((getSupplierFoundedDate() == null) ? 0 : getSupplierFoundedDate().hashCode());
        result = prime * result + ((getSupplierRegisteredCapital() == null) ? 0 : getSupplierRegisteredCapital().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", supplierId=").append(supplierId);
        sb.append(", supplierName=").append(supplierName);
        sb.append(", supplierLinkPerson=").append(supplierLinkPerson);
        sb.append(", supplierPhone=").append(supplierPhone);
        sb.append(", supplierNum=").append(supplierNum);
        sb.append(", bankName=").append(bankName);
        sb.append(", bankSn=").append(bankSn);
        sb.append(", supplierAddress=").append(supplierAddress);
        sb.append(", supplierState=").append(supplierState);
        sb.append(", supplierCode=").append(supplierCode);
        sb.append(", supplierIsJoin=").append(supplierIsJoin);
        sb.append(", supplierInfo=").append(supplierInfo);
        sb.append(", supplierFoundedDate=").append(supplierFoundedDate);
        sb.append(", supplierRegisteredCapital=").append(supplierRegisteredCapital);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", supplierNumFrom=").append(supplierNumFrom);
        sb.append(", supplierNumTo=").append(supplierNumTo);
        sb.append(", pageNum=").append(pageNum);
        sb.append(", pageSize=").append(pageSize);
        sb.append("]");
        return sb.toString();
    }
}